import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Phone from '@/components/Phone'
import Headset from '@/components/Headset'
import GoodsDetail from '@/components/GoodsDetail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/Home',
      name: 'Home',
      component: Home
    },
    {
      path: '/Phone',
      name: 'Phone',
      component: Phone
    },
    {
      path: '/Headset',
      name: 'Headset',
      component: Headset
    },
    {
      path: '/GoodsDetail',
      name: 'GoodsDetail',
      component: GoodsDetail
    }
  ]
})
